<LayoutEditFormBox :loading="false">

    <template slot="main">
        <el-form ref="editForm" :model="form" label-width="120px" label-position="left">
            <LayoutCell>
                <LayoutCellItem title="基础设置">
                    <el-form-item :label="form.cost_switch == 1 ? '开团成本' : '关闭开团成本'">
                        <el-radio-group v-model="form.cost_switch">
                            <el-radio :label="1">开启</el-radio>
                            <el-radio :label="0">关闭</el-radio>
                        </el-radio-group>
                    </el-form-item>
                    <el-form-item label="扣除" v-if="form.cost_switch == 1">
                        <el-input type="number" v-model.number="form.cost.award" style="width: 50%;" v-if="form.cost != null"><template
                                slot="prepend">扣除</template><template slot="append"></template></el-input>
                                <el-button @click="edit('select')" style="margin-left: 10px;">选择要扣除的资产</el-button>
                    </el-form-item>
                </LayoutCellItem>

            </LayoutCell>
        </el-form>
    </template>
    <template slot="footer">
        <el-button type="primary" @click="sum()">确定</el-button>
    </template>

</LayoutEditFormBox>